import { reactive, computed, toRefs, ref } from 'vue';
import { PaginationQuery, Pagination } from '@/types/table';
import { modelData } from '@/types/table';
import { getDeviceSpecsType } from '@/api/device';

const tableQuery: PaginationQuery = reactive({
    page: 0,
    size: 10,
    sort: 'id,desc',
    template: '',
    tagColour: '',
    tagRatio: '',
});

const selectModels: any = ref([]);

// 获取所有设备型号数据
const getModelData = async () => {
    selectModels.value = await getDeviceSpecsType();
};

export default {
    tableQuery,
    selectModels,
    getModelData,
};
